<%= error_messages_for('problem')%>
<% form_for @problem, :html => {:multipart => true} do |f|%>
  Problem name:<%=f.text_field :name%><br>
  Time limit:<%= f.text_field :time_limit%><br>
  Letter:<%= f.text_field :letter%><br>
  Upload new tests: <%= file_field_tag :tests%><br>
  Upload new description: <%= file_field_tag :description%>
  Upload new answers: <%= file_field_tag :answers%>
  <br>

  <%= submit_tag "Edit"%>
<%end%>
<%= button_to "Download current tests",:controller => :spoj1,:action => :download_tests,:problem => @problem%>
<%= button_to "Download current answers",:controller => :spoj1,:action => :download_answers,:problem => @problem%>
<%= button_to "Download current description",:controller => :spoj1,:action => :download_description,:problem => @problem%>
<%= link_to "Back to index",:controller => :spoj1, :controller => :spoj1_admin,:action => :index%>
<%= link_to "Logout", :controller => :sessions,:action => :logout%>